package org.jeecgframework.web.system.pojo.base;

import javax.persistence.*;

import org.jeecgframework.core.common.entity.IdEntity;

import java.util.Date;

/**
 * 程序版本控制表
 * @author 钟杰宇
 *
 */
@Entity
@Table(name = "t_s_version", schema = "")
public class PlatformVersion implements java.io.Serializable {


	private String id;//
	private String version;//版本号
	private String masterVersion;//主版本

	private String downloadAddr;// 下载地址

	private String softType;// 软件类型

	private String type;//type app类型

	private Date createTime;// 创建时间

	private Date updateTime;// 修改时间

	private Date releaseTime;//发布时间

	private Integer isable;// 是否可用：0:不发布;1:发布

	private String content;// 更新内容

	private Integer upgrade;// 是否强制升级 0是不强制升级，1是强制升级


	@Id
	@GeneratedValue(strategy= GenerationType.IDENTITY)
	@Column(name = "app_id")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Basic
	@Column(name = "version", length = 20)
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	@Basic
	@Column(name = "master_version")
	public String getMasterVersion() {
		return masterVersion;
	}

	public void setMasterVersion(String masterVersion) {
		this.masterVersion = masterVersion;
	}

	@Basic
	@Column(name = "download_addr")
	public String getDownloadAddr() {
		return downloadAddr;
	}

	public void setDownloadAddr(String downloadAddr) {
		this.downloadAddr = downloadAddr;
	}

	@Basic
	@Column(name = "soft_type")
	public String getSoftType() {
		return softType;
	}

	public void setSoftType(String softType) {
		this.softType = softType;
	}

	@Basic
	@Column(name = "type")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Basic
	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Basic
	@Column(name = "update_time")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Basic
	@Column(name = "release_time")
	public Date getReleaseTime() {
		return releaseTime;
	}

	public void setReleaseTime(Date releaseTime) {
		this.releaseTime = releaseTime;
	}

	@Basic
	@Column(name = "isable")
	public Integer getIsable() {
		return isable;
	}

	public void setIsable(Integer isable) {
		this.isable = isable;
	}

	@Basic
	@Column(name = "content")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Basic
	@Column(name = "upgrade")
	public Integer getUpgrade() {
		return upgrade;
	}

	public void setUpgrade(Integer upgrade) {
		this.upgrade = upgrade;
	}
}
